
$(function () {
    var jc = []
    // 普通带市的城市
    if (todayCity) {
        let todayc = todayCity.split(",");
        todayc.forEach((value, index) => {
            jc[index] = value + "市"
        });
    }

    // 不带市的城市
    if (todayCityTwo) {
        let todaycTwo = todayCityTwo.split(",");
        todaycTwo.forEach((item,) => {
            jc.push(item)
        })
    }
    jc.forEach((value) => {
        $("#selCity").append($('<option>', { value: value, text: value }));

    })

    $("#selCity" + ' option').css({
        'text-align': 'center',
        'color': 'rgb(51, 51, 51)'
    });
})